package com.km.demo.jpa;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.km.demo.entities.Book;

public interface BookJpa extends JpaRepository<Book, Integer> {
	@Query(value="select * from book where price>?1",nativeQuery=true)
	public List<Book> queryByPrice(double price);
}
